import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useUserStore = defineStore(
  'user',
  () => {
    const asidWidth = ref('180px')
    const setAsidWidth = () => (asidWidth.value = asidWidth.value == '180px' ? '0px' : '180px')
    return {
      asidWidth,
      setAsidWidth
    }
  },
  {
    persist: true
  }
)
